package cn.ycxy.lbl.pojo.posts.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 帖子评论表
 * </p>
 *
 * @author lbl
 * @since 2023-03-15
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@ApiModel(value="LblCsComment对象", description="帖子评论表")
public class LblCsComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "服务类型:0-失物招领; 1-拼车服务; 3-二手交易")
    private Integer serveType;

    @ApiModelProperty(value = "评论的实体类型")
    private Integer entityType;

    @ApiModelProperty(value = "实体id")
    private Long entityId;

    @ApiModelProperty(value = "目标用户id")
    private Long targetId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "状态,保留字段")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "数据创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "数据最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
